-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: New message marker is not displayed when the chat opened offline #56452
Conversation
@nkdengineer There's still a failing jest test. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2025-02-07_10.35.14.mp4Android: mWeb Chromeandroid-chrome-2025-02-07_10.36.44.mp4iOS: Nativeios-app-2025-02-07_10.55.56.mp4iOS: mWeb Safariios-safari-2025-02-07_10.54.18.mp4MacOS: Chrome / Safaridesktop-chrome-2025-02-07_10.18.33.mp4MacOS: Desktopdesktop-app-2025-02-07_10.27.03.mp4 |
@nkdengineer After step 5, if I keep the chat open and come back online, the new message marker disappears. I guess that's not expected behaviour? |
@jjcoffee i added comments and fixed lint. Please check again
I can't reproduce this bug Screen.Recording.2025-02-10.at.15.47.58.mov |
Oh I can't repro either now, maybe merging main fixed something! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@nkdengineer can you fill out the "Explanation of Change" section of the PR description please? |
@francoisl i updated |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/francoisl in version: 9.0.97-0 🚀
|
Explanation of Change
New message line is not displayed above the new message when the unread chat is opened offline. New message line appears when user enables the internet connection while viewing the chat
We use Onyx state to store
lastOfflineAt
then update it only when the network change from online to offline.Fixed Issues
$ #55990
PROPOSAL: #55990 (comment)
Tests
Preconditions: Two accounts needed, both gmail users. User A and User B signed in on different devices and sent some messages to each other in 1:1 chat.
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios-mweb.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov